package com.netty.clientserver.packet.response;

import com.netty.common.entity.User;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/** 组成特定的返回消息格体
 * @author LiuXiaoYu
 * @date 2022/2/7- 18:40
 */
@Data
@Accessors(chain = true)
public class ResponseVo implements Serializable {
    private Integer type;
    private Integer status;
    private String fileType;
    private Integer groupId;
    private List<String> userIdList;
    private User fromUser;
    private User toUser;
    /**适配私聊/群聊->发消息人的用户名*/
    private String owner;
    /**适配私聊/群聊->发送人的图片地址*/
    private String ownerImage;
    /**
     * 时间转换为字符串
     */
    private String date;
    private String message;
}
